package com.example.blog.utils;

import com.example.blog.dao.pojo.SysUser;

public class UserThreadLocal {

    private UserThreadLocal(){}

    private static final ThreadLocal<SysUser> THREAD_LOCAL = new ThreadLocal<>();

    public static void put(SysUser sysUser) {
        THREAD_LOCAL.set(sysUser);
    }

    public static SysUser get() {
        return THREAD_LOCAL.get();
    }

    public static void remove() {
        THREAD_LOCAL.remove();
    }
}
